/*******************************************************************************
 * Copyright (c) 2010, 2015 EclipseSource and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    EclipseSource - initial API and implementation
 ******************************************************************************/

/* TabFolder default theme */

TabFolder {
  font: 14px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
  border: none
}

TabFolder[BORDER] {
  border: 1px solid #bdbdbd;
}

TabFolder-ContentContainer {
  border: 1px solid #bdbdbd;
}

TabItem {
  color: #4a4a4a;
  background-color: #ffffff;
  background-image: gradient(
    linear, left top, left bottom,
    from( #f9f9f9 ),
    to( #e4e4e4 )
  );
  background-repeat: repeat;
  background-position: left top;
  text-shadow: 0 1px 0 #ffffff;
  padding : 6px;
  margin: 6px 1px 1px 0px;
  border: 1px solid #bdbdbd;
  border-bottom: none;
}

TabItem[RIGHT_TO_LEFT] {
  color: #4a4a4a;
  background-color: #ffffff;
  background-image: gradient(
    linear, left top, left bottom,
    from( #f9f9f9 ),
    to( #e4e4e4 )
  );
  background-repeat: repeat;
  background-position: left top;
  text-shadow: 0 1px 0 #ffffff;
  padding : 6px;
  margin: 6px 0px 1px 1px;
  border: 1px solid #bdbdbd;
  border-bottom: none;
}

TabItem:bottom {
  margin: 1px 1px 6px 0px;
  border: 1px solid #bdbdbd;
  border-top: none;
}

TabItem[RIGHT_TO_LEFT]:bottom {
  margin: 1px 0px 6px 1px;
  border: 1px solid #bdbdbd;
  border-top: none;
}

TabItem:selected, TabItem:selected:last {
  color: #4a4a4a;
  background-image: gradient(
    linear, left top, left bottom,
    from( #d5d5d5 ),
    to( #eaeaea )
  );
  background-repeat: repeat;
  background-position: left top;
  margin: 3px -1px 0px -2px;
  border: 1px solid #bdbdbd;
  border-top: 3px solid #5882b5;
  border-bottom: none;
}

TabItem[RIGHT_TO_LEFT]:selected, TabItem[RIGHT_TO_LEFT]:selected:last {
  color: #4a4a4a;
  background-image: gradient(
    linear, left top, left bottom,
    from( #d5d5d5 ),
    to( #eaeaea )
  );
  background-repeat: repeat;
  background-position: left top;
  margin: 3px -2px 0px -1px;
  border: 1px solid #bdbdbd;
  border-top: 3px solid #5882b5;
  border-bottom: none;
}

TabItem:selected:bottom {
  color: #4a4a4a;
  background-image: gradient(
    linear, left top, left bottom,
    from( #d5d5d5 ),
    to( #eaeaea )
  );
  background-repeat: repeat;
  background-position: left top;
  margin: 0px -1px 3px -2px;
  border: 1px solid #bdbdbd;
  border-bottom: 3px solid #5882b5;
  border-top: none;
}

TabItem[RIGHT_TO_LEFT]:selected:bottom {
  color: #4a4a4a;
  background-image: gradient(
    linear, left top, left bottom,
    from( #d5d5d5 ),
    to( #eaeaea )
  );
  background-repeat: repeat;
  background-position: left top;
  margin: 0px -2px 3px -1px;
  border: 1px solid #bdbdbd;
  border-bottom: 3px solid #5882b5;
  border-top: none;
}

TabItem:selected:first {
  color: #4a4a4a;
  background-repeat: repeat;
  background-position: left top;
  margin: 3px -1px 0px 0px;
  border: 1px solid #bdbdbd;
  border-top: 3px solid #5882b5;
  border-bottom: none;
}

TabItem[RIGHT_TO_LEFT]:selected:first {
  color: #4a4a4a;
  background-repeat: repeat;
  background-position: left top;
  margin: 3px 0px 0px -1px;
  border: 1px solid #bdbdbd;
  border-top: 3px solid #5882b5;
  border-bottom: none;
}
